]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
build: Keep CSS updated when sass is installed
authorFlorian Müllner <fmuellner@gnome.org>
Sat, 21 Feb 2015 14:05:16 +0000 (15:05 +0100)
committerFlorian Müllner <fmuellner@gnome.org>
Sat, 21 Feb 2015 19:46:49 +0000 (20:46 +0100)
configure.ac
data/Makefile.am

index bac63af7157e7ccdd7d0552a6fa9bd3645180d19..e729666b4d0d3b34b9c9f5fb459cd757439a4384 100644 (file)
@@ -242,6 +242,8 @@ if test -z "$GDBUS_CODEGEN"; then
   AC_MSG_ERROR([gdbus-codegen not found])
 fi
 
+AC_PATH_PROG([SASS],[sass],[])
+
 AC_CONFIG_FILES([
   Makefile
   data/Makefile
index c46e350307a658bb60b8b298e196ff94b265c582..56d629a09a11bda6dc9bbaafc42be988736650b5 100644 (file)
@@ -57,6 +57,12 @@ dist_theme_files =                                           \
        theme/gnome-shell-sass/gnome-shell-sass.doap            \
        $(NULL)
 
+%.css: %.scss $(theme_sources)
+       @if test -n "$(SASS)"; then \
+               if $(AM_V_P); then PS4= set -x; else echo "  GEN      $@"; fi; \
+               $(SASS) --sourcemap=none -f -q --update $<; \
+       fi
+
 resource_files = $(shell $(GLIB_COMPILE_RESOURCES) --sourcedir=$(srcdir)/theme --generate-dependencies $(srcdir)/gnome-shell-theme.gresource.xml)
 gnome-shell-theme.gresource: gnome-shell-theme.gresource.xml $(resource_files)
        $(AM_V_GEN) $(GLIB_COMPILE_RESOURCES) --target=$@ --sourcedir=$(srcdir)/theme $<